import type { RouteRecordRaw } from 'vue-router'
import OrderView from '@/views/order/OrderView.vue'
import OrderPayment from '@/views/order/OrderPayment.vue'
import OrderDetailView from '@/views/order/OrderDetailView.vue'

export const orderRoutes: RouteRecordRaw[] = [
  {
    path: '/orders',
    name: 'orders',
    component: OrderView,
    meta: { 
      title: '我的订单',
      requiresAuth: true
    }
  },
  {
    path: '/order/payment',
    name: 'order-payment',
    component: OrderPayment,
    meta: { 
      title: '订单支付',
      requiresAuth: true
    }
  },
  {
    path: '/orders/detail',
    name: 'order-detail',
    component: OrderDetailView,
    meta: { 
      title: '订单详情',
      requiresAuth: true
    }
  }
]